
package com.jf.cloud.api.delivery.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 订单快递信息DTO
 *
 * @author zz
 * @date 2020-12-07 15:10:00
 */
public class DeliveryOrderDTO{

    @Schema(description = "deliveryOrderId" )
    private Long deliveryOrderId;

    @NotNull(message="订单号不能为空")
    @Schema(description = "订单号" ,required=true)
    private Long orderId;

    @Schema(description = "订单地址id" ,required=true)
    private Long orderAddrId;

    @Schema(description = "快递公司" ,required=true)
    private Long deliveryCompanyId;

    @Schema(description = "物流单号" ,required=true)
    private String deliveryNo;

    @NotNull(message="发货方式不能为空")
    @Schema(description = "发货方式" ,required=true)
    private Integer deliveryType;

    @Schema(description = "用户id" )
    private Long userId;

    /**
     * 收件人
     */
    private String consignee;

    /**
     * 手机号
     */
    private String mobile;

    private List<DeliveryOrderItemDTO> selectOrderItems;

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getDeliveryCompanyId() {
        return deliveryCompanyId;
    }

    public void setDeliveryCompanyId(Long deliveryCompanyId) {
        this.deliveryCompanyId = deliveryCompanyId;
    }

    public String getDeliveryNo() {
        return deliveryNo;
    }

    public void setDeliveryNo(String deliveryNo) {
        this.deliveryNo = deliveryNo;
    }

    public Integer getDeliveryType() {
        return deliveryType;
    }

    public void setDeliveryType(Integer deliveryType) {
        this.deliveryType = deliveryType;
    }

    public List<DeliveryOrderItemDTO> getSelectOrderItems() {
        return selectOrderItems;
    }

    public void setSelectOrderItems(List<DeliveryOrderItemDTO> selectOrderItems) {
        this.selectOrderItems = selectOrderItems;
    }

    public Long getDeliveryOrderId() {
        return deliveryOrderId;
    }

    public void setDeliveryOrderId(Long deliveryOrderId) {
        this.deliveryOrderId = deliveryOrderId;
    }

    public Long getOrderAddrId() {
        return orderAddrId;
    }

    public void setOrderAddrId(Long orderAddrId) {
        this.orderAddrId = orderAddrId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "DeliveryOrderDTO{" +
                "deliveryOrderId=" + deliveryOrderId +
                ", orderId=" + orderId +
                ", userId=" + userId +
                ", orderAddrId=" + orderAddrId +
                ", deliveryCompanyId=" + deliveryCompanyId +
                ", deliveryNo='" + deliveryNo + '\'' +
                ", deliveryType=" + deliveryType +
                ", consignee='" + consignee + '\'' +
                ", mobile='" + mobile + '\'' +
                ", selectOrderItems=" + selectOrderItems +
                '}';
    }
}
